<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=UTF-8"%>
<%@ page import="com.b2c.ftysys.view.application.*,java.util.*,com.b2c.ftysys.domain.*,org.springframework.web.context.*"%>

<%
response.setCharacterEncoding("UTF-8");

String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

String fileName = request.getParameter("proPriceExcel");
System.out.println(fileName);
String mess="";
if(fileName!=null){
	WebApplicationContext wac = (WebApplicationContext)config.getServletContext().getAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE); 
	CostCountUtil service = (CostCountUtil)wac.getBean("CostCountUtil");
	service.CountFromExcel(fileName);
	mess=service.getMess();
	System.out.println(mess);
}

%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>My JSP 'outPrice.jsp' starting page</title>
  </head>
  
  <body>
    <%=mess%>
  </body>
</html>
